package day5;

public class Manager extends Employee{
    private int earnings; // 基本工资

    public Manager(String name, String sex, String date, int earnings) {
        super(name, sex, date);
        this.earnings = earnings;
    }

    public int getEarnings() {
        return earnings;
    }

    public void setEarnings(int earnings) {
        this.earnings = earnings;
    }

    //输出：经理 李四 本月工资为 6000.0 元。
    public void computeSalary() {
        System.out.println("经理 " + this.getName() + " 本月工资为 " + this.getEarnings());
    }
}
